//
//  TextFieldCell.m
//  Estate
//
//  Created by wangdongdong on 2017/10/10.
//  Copyright © 2017年 ttsx. All rights reserved.
//

#import "TextFieldCell.h"

@implementation TextFieldCell

- (void)awakeFromNib {
    [super awakeFromNib];

    self.selectionStyle = NO;
    self.nameLabel.textColor = UIColorFromRGB(0x33333);
    self.inputField.textColor = UIColorFromRGB(0x33333);
    [self.inputField addTarget:self action:@selector(textField1TextChange:) forControlEvents:UIControlEventEditingChanged];
}

#pragma mark UITextFieldDelegate
- (void)textField1TextChange:(UITextField *)textField {
    
    if (self.allBlock) {
        self.allBlock(textField.text);
    }
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
